<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>公司信息管理</title>
	<meta name="decorator" content="default" />
	<script type="text/javascript">
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
	</script>
</head>
<body>
<ul class="nav nav-tabs">
	<li class="active"><a href="${ctx}/business/companyinfo/">公司信息列表</a></li>
</ul>
<form:form id="searchForm" modelAttribute="companyInfo"
		   action="${ctx}/business/companyinfo/" method="post" class="breadcrumb form-search">
	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
	<input id="pageSize" name="pageSize" type="hidden"
		   value="${page.pageSize}" />
	<label>名称  ：</label>
	<form:input path="" htmlEscape="false" maxlength="50"
				class="input-medium" />
	&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit"
	value="查询" />
</form:form>
<tags:message content="${message}" />
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<thead>
	<tr>
			<%--<th>ID</th>--%>
			<th>公司名称</th>
			<th>地址</th>
			<th>公司法人</th>
			<th>备注</th>
		<shiro:hasPermission name="business:companyinfo:edit">
			<th>操作</th>
		</shiro:hasPermission>
	</tr>
	</thead>
	<tbody>
	<c:forEach items="${page.list}" var="companyInfo">
		<tr id="${companyInfo.id}">
				<%--<td><a href="${ctx}/business/companyinfo/form?id=${companyInfo.id}">${companyInfo.id}</a></td>--%>
				<td>${companyInfo.office.name}</td>
				<td>${companyInfo.address}</td>
				<td>${companyInfo.legalPerson}</td>
				<td>${companyInfo.remarks}</td>
			<shiro:hasPermission name="business:companyinfo:edit">
				<td>
					<a href="${ctx}/business/companyinfo/see?id=${companyInfo.id}">查看详情</a>
				</td>
			</shiro:hasPermission>
		</tr>
	</c:forEach>
	</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>